// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import FastClick from 'fastclick'
import App from './App'

import router from './router';

// import store from './store';
// import axios from 'axios';
// Vue.prototype.$axios = axios;


import { AlertPlugin, ToastPlugin, AjaxPlugin } from 'vux'

import Validator from 'vue-validator'


// 全局导入样式文件,任何一个组件都可以调用
import './assets/font-awesome/css/font-awesome.css'
// import './assets/bootstrap/dist/css/bootstrap.css'
// import './assets/bootstrap/dist/js/bootstrap.js'
Vue.use(AjaxPlugin)
Vue.use(Validator)
Vue.use(AlertPlugin)
Vue.use(ToastPlugin)

FastClick.attach(document.body)

/* eslint-disable no-new */
new Vue({
	router,
	// store,
	render: h => h(App)
}).$mount('#app')
	//可以通过el属性将vue实例挂载在DOM上
	//也可以通过new Vue().$mount('#app')  手动将实例挂载在DOM上